package com.zkny.zknyerp.feign;

import com.zkny.zknyerp.model.User;
import com.zkny.zknyerp.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 *智慧康养系统登录远程feign调用抽取
 */
@FeignClient(name = "user", url = "${zhky.user.url}")
public interface UserFeign {

    /**
     * 智慧康养用户登录接口
     * @param user
     * @return
     */
    @PostMapping("/login")
    public String login(@RequestBody User user);
}
